#include<bits/stdc++.h>
using namespace std;
int read(){
    char c=getchar();int x=0,f=1;
    while(!isdigit(c)&&c!='-') c=getchar();
    if(c=='-') f=-1;
    while(!isdigit(c)) c=getchar();
    while(isdigit(c)){
        x=x*10+c-'0';
        c=getchar();
    }
    return f*x;
} 
const int N=2e5;
int n,a[N],ans;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    n=read();
    for(int i=1;i<=n;i++) a[i]=read();
    stable_sort(a+1,a+n+1);
    int j=1;
    for(int i=2;i<=n;i++){
        if(a[i]>a[j]){
            ans++;
            j++;
        }
    }
    cout<<n-ans<<endl;
    return 0;
}
/*
5
1 2 3 1 2
10
136 136 136 2417 136 136 2417 136 136 136
*/